﻿
namespace gt.framework.Security
{
    public static class Cryptographer<T> where T:ICryptography,new()
    {
        public static string Decrypt(string encryptedString)
        {
            ICryptography cryptographer = new T();
            return cryptographer.Decrypt(encryptedString);
        }

        public static string Encrypt(string normalString)
        {
            ICryptography cryptographer = new T();
            return cryptographer.Encrypt(normalString);
        }
    }
}
